"""
porting db2 sql code to py code
"""